package com.shenzhen.horselive.utils;

public class PhoneUtils {

    /**
     * 手机号用****号隐藏中间数字
     *
     * @param phone
     * @return
     */
    public static String settingphone(String phone) {
        if (phone.length()==11)
        {
        String phone_s = phone.replaceAll("(\\d{3})\\d{4}(\\d{4})", "$1****$2");
        return phone_s;
        }
        else
        {
            return phone;
        }
    }

}
